package cn.kgc.junketing.consumerfeign.service;

import cn.kgc.junketing.consumerfeign.entity.User;
import cn.kgc.junketing.consumerfeign.vo.ResponseBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Service
@FeignClient("SERVICE-PROVIDER")
public interface UserService {
    @PostMapping("/login/doFindLoginUser")
    ResponseBean findLoginUser(@RequestBody User user);

    @PostMapping("/login/doFindUserByTicket")
    User doFindUserByTicket(String ticket);
}
